# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: yatseni <yatseni@163.com>

_pkgname=wxagent
pkgname=wxagent-git
pkgver=r65.9b7b29d
pkgrel=1
pkgdesc="A weixin agent daemon and client"
license=('Apache')
url="https://github.com/kitech/wxagent/"
arch=('any')
depends=('python' 'python-pyqt5' 'python-qiniu' 'python-html2text')
optdepends=()
makedepends=('git')
checkdepends=()
conflicts=('wxagent')
#install=${pkgname}.install
source=("$_pkgname::git+https://github.com/kitech/wxagent.git"
        "wxagent.service"
        "txagent.conf"
        "qqagent.service")
sha512sums=('SKIP'
            '0f6e46266546e1ab00fb72fb0f9d6a05c7380c51f4d8c1ce422689fd3a3e9a04570296d16a0c3bb4da7b3516a0f1d155fb30c6458eff8397bc56ef774cc195a8'
            '07cf731720f2b57d146a8ffdf705fb1b5d083f052ac3313e7b9105ee74d5fad5cfb0be8e188f0cacaed540bd985886c48da13423a479a241576f99332d9c4db9'
            '7b9e48dfe119318ab0b2ae976c8ec69c13dea8f939c60b38d2f0bf5ccaf14dd585610d510a75db10cd5a469770527a901c82f5d47a09eba08c9286ce651c8952')

# set -x

pkgver() {
  cd $_pkgname
  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


prepare()
{
  true
}

build()
{
  true
}

package()
{
  cd "$srcdir/wxagent"
  python setup.py install -O1 --root "$pkgdir"

  install -Dm644 "$srcdir/wxagent.service" "$pkgdir/usr/lib/systemd/user/wxagent.service"
  install -Dm644 "$srcdir/wxagent.conf" "$pkgdir/etc/dbus-1/wxagent.conf"
  install -Dm644 "$srcdir/qqagent.service" "$pkgdir/usr/lib/systemd/user/qqagent.service"
  install -Dm644 "$srcdir/qqagent.conf" "$pkgdir/etc/dbus-1/qqagent.conf"
}

# vim:set ts=2 sw=2 et:
